from com.oot2d import *
import random

def move_random():
    random.seed()
    x = random.getInt(0, 4)
    if x == 0:
        api.moveBy(npc, random.getInt(-50, -10), 0, 0.1)
    elif x == 1:
        api.moveBy(npc, random.getInt(10, 50), 0, 0.1)
    elif x == 2:
        api.moveBy(npc, 0, random.getInt(-50, -10), 0.1)
    elif x == 3:
        api.moveBy(npc, 0, random.getInt(10, 50), 0.1)
    elif x == 4:
        api.delay(random.getInt(1000, 3000))